<template>
    <view class="certificate-card">
        <view class="content">
            <!-- 图片 -->
            <view class="image-container">
                <img class="image" :src="record.url" alt="">
            </view>
            <view class="desc">
                <text class="name">{{ record.name }}</text>
                <view class="sub-desc">
                    <u-tag class="tag" text="兑" size="mini" type="error"></u-tag>
                    <u--text class="num-desc" color="#dd6161" :text="record.integrate"></u--text>
                </view>
            </view>
        </view>
    </view>
</template>


<script>
export default {
    props: {
        record: {
            type: Object,
            default: () => {}
        }
    }
}
</script>

<style lang="scss" scoped>
.certificate-card{
    @include flex(flex-start, column);
    margin: 20rpx;
    padding: 20rpx;
    box-shadow: 0 4px 35px rgba(0, 0, 0, 0.1);
    .image-container {
        border-radius: 20rpx;
        overflow: hidden;
        width: 300rpx;
        height: 180rpx;
        .image{
            width: 100%;
            height: 100%;
        }
    }
    .desc{
        text-align: start;
        .name{
            font-size: 26rpx;
            margin-top: 10rpx;
        }
        .sub-desc{
            @include flex();
            margin-top: 40rpx;
            .tag{
                font-size: 20rpx;
                margin-bottom: 10rpx;
            }
            .num-desc{
            }
        }
    }
}
</style>